package day05;

import java.util.ArrayList;
import java.util.LinkedList;

public class Demo2 {

	public static void main(String[] args) {
		
		LinkedList<String> linkedList = new LinkedList<String>();
		linkedList.add("1");
		linkedList.add("2");
		linkedList.add("3");
		linkedList.addFirst("4");
		
		System.out.println(linkedList.getLast());
		System.out.println(linkedList);
	}
}
